package org.example.main;

import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * @Author: WangShengJie
 * @Date: 2025/5/7
 */
public class NaNDemo {
    public static void main(String[] args) {
//        double naN = Double.NaN;
//        System.out.println(naN);
//        System.out.println(naN==naN);
//        double sqrt = Math.sqrt(-1);
//        System.out.println(sqrt);
//
//        double number1 = 8.0;
////        BigDecimal v = (new BigDecimal("1").divide(new BigDecimal("3")));
////        System.out.println(v);
//        System.out.println(1.0/3);
//        double pow = Math.pow(number1,1.0/3 );
//        System.out.println(pow);

        List<String> ldCodeDOList = null;
        List<Map> resultList = ldCodeDOList.stream().map(e -> {
            Map<String, String> codeMap = new HashMap();
            codeMap.put("code", e.toLowerCase());

            return codeMap;
        }).collect(Collectors.toList());
        System.out.println(resultList);
    }
}
